<?php
namespace app\serverfund\validate;
use \app\manage\validate\BaseValidate;
/**
 * @author:      李颖
 * @DateTime:    2017-09-09 16:48:42
 * @Description: 充值
 */
class Recharge extends BaseValidate
{

    protected $rule = [
        'id' => ['integer', 'gt'=>0],
        'user_id' => ['integer', 'gt'=>0],
        'app_id' => ['integer', 'gt'=>0],
        'recharge_type' => ['in'=>'cash,currency'],
        'pay_type' => ['in'=>['alipay','wechat','unionpay']],
        'create_ip' => ['ip'],
        'update_ip' => ['ip'],
        'money' => ['integer', 'gt'=>0],
        'recharge_currency' => ['number', 'egt'=>0],
        'body' => ['min'=>2],
        'attach' => ['min'=>2],
        'integral_deduction' => ['integer', 'egt'=>0],
        'integral_deduction_fund' => ['number', 'egt'=>0],
        'total_price' => ['number', 'egt'=>0],
        'final_total_price' => ['number', 'gt'=>0],
        'fund_type' => ['in'=>'cash,currency,alipay,wechat,unionpay'],
        'is_use_integral' => ['in'=>'0,1'],
        'operate_result' => ['in'=>'1,2'],
        'steps_operate_result' => ['array'],
    ];
    protected $message = [];
    protected $scene = [];









}